const studentObj = require('../modules/Student');

let TeacherController = {
    get_info: async function(req, res){
        let resultDate = await studentObj.getInfo();
        res.send(resultDate);
    },
    post_setStudent: async function(req,res){
        let data = req.body;
        let resultDate = await studentObj.setStudent(data);
        res.send(resultDate);
    },
    post_commentInfo:async function(req,res){
        let data = req.body;
        let resultDate = await studentObj.getCommentInfo(data);
        res.send(resultDate);
    },
    post_removeComment:async function(req,res){
        let data = req.body;
        let resultDate = await studentObj.removeCommentInfo(data);
        res.send(resultDate);
    }
}
module.exports = TeacherController;